'use strict';
const Subscription = require('egg').Subscription;

// ZKX建行生活 每日提醒
class DailyTaskJhshCache extends Subscription {
  static get schedule() {
    return {
      // interval: '5s',
      type: 'worker',
      cron: '0 30 10 * * *',
    };
  }
  async subscribe() {
    const { service } = this;
    await service.mailer.send({
      emails: [
        '1792253206@qq.com', // zkx
      ],
      subject: 'ZKX专属的定时提醒-建行生活',
      html: '建行生活记得签到',
    });
  }
}

module.exports = DailyTaskJhshCache;
